//
//  AppDelegate+LoadWindow.m
//  objective_c_language
//
//  Created by 王玉龙 on 2018/5/31.
//  Copyright © 2018年 longlong. All rights reserved.
//

#import "AppDelegate+LoadWindow.h"
#import "MainTabbarController.h"
#import "AuthorizationManager.h"

@implementation AppDelegate (LoadWindow)

- (void)applicationDidFinishLaunchingLoadWindow
{
    self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
    [self.window makeKeyAndVisible];
    
    
    if ([AuthorizationManager isAuthorization])
    {
        MainTabbarController *mianTabbarVC = [[MainTabbarController alloc]init];
        self.window.rootViewController = mianTabbarVC;
    }
    else
    {
        [AuthorizationManager accessPermission];
    }
}


@end
